package apps.web.controller.base;

import org.hibernate.criterion.Order;

import webframe.common.controller.BaseCommandController;
import apps.web.service.ServiceContainer;

public abstract class MyBaseCommandController extends BaseCommandController {
	private static Order[] defaultOrders = new Order[] { Order.desc("id") };
	private Order[] orders;
	private ServiceContainer serviceContainer;

	public Order[] getOrders() {
		if (orders == null) {
			orders = defaultOrders;
		}
		return orders;
	}

	public void setOrders(Order[] orders) {
		this.orders = orders;
	}

	public ServiceContainer getServiceContainer() {
		return serviceContainer;
	}

	public void setServiceContainer(ServiceContainer serviceContainer) {
		this.serviceContainer = serviceContainer;
	}

}
